package dnem;


import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class Pagemenu {
    private WebDriver driver;

    public Pagemenu(WebDriver driver) {
        this.driver=driver;
    }

    public Pageresult navigate(String id) {
        driver.findElement(By.id(id)).click();
        return new Pageresult(driver);

    }
}
